AnnieRoot.readyGo=AnnieRoot.readyGo||{};
AnnieRoot.readyGo.ReadyGo=function(){
	var s = this;
	annie.MovieClip.call(s);
	/*_a2x_need_start*//*_a2x_need_end*/
	annie.initRes(s,"readyGo","ReadyGo");
	//your code here
	s.addEventListener(annie.Event.ADD_TO_STAGE, function (e) {
		s.gotoAndPlay(2);
		if (s.bringData) {
			if (s.bringData == 'startGame') {
				AnnieRoot.gameGlobalData.userCatchedCowSum = 0;//重新计算用户套的的牛牛数
				annie.globalDispatcher.dispatchEvent('resetUserCowsIcon');//
			} else {
				//console.log('in gaming');
			}
		}

	})
	s.addEventListener(annie.Event.END_FRAME, s.ef = function (e) {
		s.parent.removeChild(s);
		if (s.bringData) {
			if (s.bringData == 'startGame') {
				annie.globalDispatcher.dispatchEvent('gameStart');//321倒数完，游戏开始
			} else {
				annie.globalDispatcher.dispatchEvent('userAbleToPlayGame');//用户可以继续点击套牛按钮了
			}
		}
	})
};
annie.A2xExtend(AnnieRoot.readyGo.ReadyGo,annie.MovieClip);
